/* jshint esversion: 6 */
import Vue from 'vue';
import router from './router';
import qs from 'qs';

// 处理ajax请求
import axios from './page/resource/js/axios.config.js';
Vue.prototype.$ajax = axios;
Vue.prototype.$qs = qs;

// 引入Element相关内容
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);


// 引入JS组件
import './page/resource/js/components.js';
// 引入服务端的样式内容
import './page/resource/js/server.js';

// 图片的特殊处理
Vue.prototype.baseImage = process.env.NODE_ENV === 'production' ? './web/static/img/' : './static/img/';

import Entry from './Entry.vue';
new Vue({
  el:'#index',
  router,
  components: {Entry},
  template: '<Entry/>'
});
